#ifndef DX_LOADIMAGE
#define DX_LOADIMAGE

#include "DXInclude.h"
#include "DXMacro.h"

typedef struct BitMapFileFlag
{
	BitMapFileFlag()
	{
		memset(akPalette,0,sizeof(akPalette));
		pcBuffer = NULL;
	}
	BITMAPFILEHEADER	kBitFileHeader;
	BITMAPINFOHEADER	kBitInfoHeader;
	PALETTEENTRY		akPalette[MAX_COLORS_PALETTE];
	UCHAR*				pcBuffer;
}BITMAPFILE,*BITMAPFILEPTR;
typedef std::vector<BITMAPFILEPTR> VBitmapFilePtr;

int FlipBitmap(UCHAR* image, int bytes_per_line, int height);
int LoadBitMapFile(BITMAPFILEPTR& pkBitMap,const char* pcFileName);
int UnloadBitMapFile(BITMAPFILEPTR pkBitMap);
	
#endif



